//
//  ShopcartModel.h
//  B2C
//
//  Created by 李小龙 on 2017/8/8.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GoodDetailModel.h"

@interface AttributeModel : NSObject

@property (nonatomic, copy) NSString *aid;
@property (nonatomic, copy) NSString *taid;
@property (nonatomic, copy) NSString *taname; // 属性名

@end

@interface ShopcartModel : NSObject

@property (nonatomic, assign) BOOL isSelect;
@property (nonatomic, copy) NSString *goldprice;    // 原价
@property (nonatomic, copy) NSString *gprice;       // 价格
//购物车
@property (nonatomic, copy) NSString *scid;         // 购物车id
@property (nonatomic, copy) NSString *mid;
@property (nonatomic, copy) NSString *number;       // 数量
@property (nonatomic, copy) NSString *createtime;   // 创建时间
@property (nonatomic, copy) NSString *gid;          // 商品id
@property (nonatomic, copy) NSString *gaid;         // 价格id
@property (nonatomic, copy) NSString *suid;         // 供货商ID
@property (nonatomic, copy) NSString *gweight;          // 重量
@property (nonatomic, copy) NSString *gcid;
@property (nonatomic, copy) NSString *gextension;   // 推广信息
@property (nonatomic, copy) NSString *gimg;         // 商品主图片
@property (nonatomic, copy) NSString *gname;        // 商品名称
//商品
@property (nonatomic, copy) NSString *gintegral;    // 积分
@property (nonatomic, assign) BOOL isigoods;        // 是否积分商品
@property (nonatomic, assign) BOOL isshelves;       // 是否上架
//@property (nonatomic, copy) NSString *sid;
//@property (nonatomic, copy) NSString *skid;
//@property (nonatomic, copy) NSString *uid;
//@property (nonatomic, copy) NSString *gtcid;
//@property (nonatomic, copy) NSString *gtrcid;
//@property (nonatomic, copy) NSString *ganame;       // 商品名称
//@property (nonatomic, copy) NSString *gaoldprice;   // 原价
//@property (nonatomic, copy) NSString *gaprice;      // 现价
//@property (nonatomic, copy) NSString *gastock;      // 库存
//@property (nonatomic, copy) NSString *gbarcode;     // 条形码
//@property (nonatomic, copy) NSString *gdetails;     // 商品详细
//@property (nonatomic, copy) NSString *ghomeimg;     // 首页缩略图
//@property (nonatomic, copy) NSString *gnumber;      // 商品编号
//@property (nonatomic, copy) NSString *gpromotionprice;  // 促销价
//@property (nonatomic, copy) NSString *supplypricel;     // 供货价
//@property (nonatomic, copy) NSString *salesvolume;      // 销售量
//@property (nonatomic, copy) NSString *gstarttime;       // 秒杀开始时间
//@property (nonatomic, assign) BOOL gseckill;            // 是否为秒杀
//@property (nonatomic, assign) BOOL isabroad;            // 是否境外
//@property (nonatomic, assign) BOOL isdiscount;          // 是否参与优惠
//@property (nonatomic, assign) BOOL isfreeshipping;      // 是否包邮
//@property (nonatomic, assign) BOOL isnew;               // 是否新品
//@property (nonatomic, assign) BOOL ispurchasing;        // 是否代购
//@property (nonatomic, assign) BOOL istj;                // 是否推荐
@property (nonatomic, copy) NSString *gseckillprice;    // 秒杀价格
@property (nonatomic, copy) NSString *cid;
@property (nonatomic, copy) NSString *allprice;     // 总价

// 型号
@property (nonatomic, copy) NSMutableArray<GoodAttributeModel *> *attribute;
@property (nonatomic, strong) NSMutableArray<GoodsAttributePriceModel *> *goodsattribute;
@property (nonatomic, strong) NSMutableArray<AttributeModel *> *twoattribute; // 属性
//@property (nonatomic, strong) NSMutableArray<GoodsPriceTaidModel *> *goodspricetaid;

//新添加hdy_20180607
@property (nonatomic,strong) NSMutableArray * g_color;  //颜色属性
@property (nonatomic,strong) NSMutableArray * g_price;  //价格组合
@property (nonatomic,strong) NSMutableArray * g_sku;    //sku规格
@property (nonatomic,strong) NSMutableArray * g_test;   //这是什么？

@property (nonatomic, copy) NSString *note; // 备注（自己加的）

@end

@interface ShopcartClassifyModel : NSObject

@property (nonatomic, copy) NSString *gcid;
@property (nonatomic, copy) NSString *gtcid;
@property (nonatomic, copy) NSString *gtrcid;       // 三级分类ID（凑单列表传参）
@property (nonatomic, copy) NSString *gtrcimg;
@property (nonatomic, copy) NSString *gtrcname;
@property (nonatomic, strong) NSMutableArray<ShopcartModel *> *shopcart; // 购物车商品列表
//@property (nonatomic, strong) NSMutableArray<ShopcartModel *> *goods;    // 订单结算商品列表
@property (nonatomic, strong) NSMutableArray<GoodsFullCut *> *fullcut;
@property (nonatomic, strong) CouponModel *couponModel; // 选择的优惠券（自己加的）

// 没什么用
//@property (nonatomic, assign) BOOL islist;
//@property (nonatomic, assign) BOOL isfind;
//@property (nonatomic, assign) BOOL ishome;
//@property (nonatomic, assign) BOOL isintegral;

@end

